#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
#include <string>
#include <vector>
#include <unordered_map>
using namespace std;

int main() {
    int hash1[128] = { 0 };
    int hash2[128] = { 0 };
    string s1;
    string s2;
    cin >> s1 >> s2;
    for (auto e : s1)
    {
        hash1[e]++;
    }
    for (auto e : s2)
    {
        hash2[e]++;
    }
    for (int i = 0; i < 128; i++)
    {
        hash1[i] -= hash2[i];
        if (hash1[i] < 0)
        {
            cout << "No";
            return 0;
        }
    }
    cout << "Yes";
    return 0;
}